#define _CRT_SECURE_NO_WARNINGS
int Add(int num1, int num2)
{
    int n = (num1 & num2) << 1;
    int m = num1 ^ num2;
    while (n & m)
    {
        int tmp = n;
        n = (n & m) << 1;
        m = tmp ^ m;
    }
    return n | m;
}